$(function() {
	_init1();
});

function _init1() {
	// binding login operation
	$("#login").on("click", signin);

}

function signin() {
	var username = $("#j_username").val();
	var password = $("#j_password").val();
	alert("show username and password : " + username + ", " + password);
	$.post("./signin", {
		username : username,
	    password : password,
	}).done(function(data) {
		alert(data);
	}).fail(function() {
		alert("fail");
	});
}